package cn.wanda.bi.sunshine.platform.server.client.request;

import java.util.List;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by wangfupeng1 on 2016/9/18.
 */
@Data
public class OpenimSendMsgRequest {

    @JsonProperty("SyncOtherMachine")
    @ApiModelProperty(value = "默认写2，消息不同步至From_Account；若不填写默认情况下会将消息存From_Account漫游" ,example = "2")
    @NotNull
    private Integer syncOtherMachine;

    @ApiModelProperty(value = "消息接收方账号。" ,example = "lumotuwe2")
    @NotNull
    @JsonProperty("To_Account")
    private String to_Account;

    @ApiModelProperty(value = "消息随机数,由随机函数产生。（用作消息去重）" ,example = "1286666")
    @NotNull
    @JsonProperty("MsgRandom")
    private Integer msgRandom;

    @ApiModelProperty(value = "消息时间戳，unix时间戳。" ,example = "5656657")
    @NotNull
    @JsonProperty("MsgTimeStamp")
    private Long msgTimeStamp;

    @JsonProperty("MsgBody")
    private List<MsgBody> msgBody;


}
